import {ref} from 'vue'
export default function useModal(){

    let visible = ref(false);
    function openModal(){
        visible.value = true;
    }
    function closeModal(){
        visible.value = false;
    }

    return [visible,openModal,closeModal]
}